package com.uco.unittest;

import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;

public class StringUtilsTest {
    @Test
    public void testGetLength() {
        StringUtils.getLength("hello world");
        StringUtils.getLength(null);
    }

    @Test
    public void testGetMaxIndex() {
        int cnt = StringUtils.getMaxIndex("hello");
        Assertions.assertEquals(5, cnt);
    }
}
